-- GENERATED SPELL FOR [Stone Fury] --


function spell0_2258(pUnit, Event) --@Ground Tremor,Self--
pUnit:FullCastSpellOnTarget(6524,pUnit)
pUnit:RegisterEvent('Sorts_2258', 2000, 1)
end

function spell1_2258(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_2258', 530, 1)
end

function Sorts_2258(pUnit, Event)
local choix_sorts_2258 = math.random(0, 1)
if choix_sorts_2258 == 0 then
pUnit:RegisterEvent('spell0_2258', 1, 1)
end
if choix_sorts_2258 == 1 then
pUnit:RegisterEvent('spell1_2258', 1, 1)
end
end

function mob2258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2258', math.random(1500, 3000), 1)
end

function mob2258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2258, 1, 'mob2258_Action')
RegisterUnitEvent(2258, 2, 'mob2258_Leave')
RegisterUnitEvent(2258, 3, 'mob2258_Kill')
RegisterUnitEvent(2258, 4, 'mob2258_Die')
